﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: 2 Chi |
        /// Range: 5 Yards |
        /// Cast Time: Instant |
        /// GCD: 1 Second |
        /// http://www.wowhead.com/spell=100784
        /// http://www.wowhead.com/spell=116768/combo-breaker-blackout-kick
        /// </summary>


        public bool BlackoutKick()
        {
            return (MIRsettings.Instance.BlackoutKick) && 
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentTarget.IsWithinMeleeRange) &&
                   (StyxWoW.Me.CurrentChi >= 2 ||
                   Helpers.Unit.HasMyAura(StyxWoW.Me, "Combo Breaker: Blackout Kick")) &&
                   !SpellManager.Spells["Blackout Kick"].Cooldown;
        }
    }
}
